﻿@model Apps.Models.PUB.PUB_DEVICEModel
@using Apps.Web.Core;
@using Apps.Common;
@using Apps.Models.PUB;
@using Apps.Web;
@using Apps.Locale;
@using Apps.Models.Sys;
@{
    ViewBag.Title = "详情";
    Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
    List<permModel> perm = null;
}
<style type="text/css">
    .Newformtable {
        margin-top: 4px;
    }

        .Newformtable th {
            width: 130px;
            height: 35px;
            font-weight: bold;
        }

        .Newformtable td {
            width: 180px;
        }

    input[type="text"] {
        width: 92%;
    }

    select {
        width: 98%;
    }

    textarea {
        width: 98%;
    }
</style>
<script type="text/javascript">
$(function () {
    $("#btnReturn").click(function () {
         window.parent.frameReturnByClose();
    });
});
</script>
<div class="mvctool bgb">
@Html.ToolButton("btnReturn", "fa fa-reply", Resource.Reply,false)
</div>
          @Html.HiddenFor(model => model.DEVICE_ID)
        @Html.HiddenFor(model => model.NODE_ID)
        <table class="Newformtable">
            <tbody>
                <tr>
                    <th>
                        @Html.LabelFor(model => model.DEVICE_NAME)：
                    </th>
                    <td>
                        @Html.EditorFor(model => model.DEVICE_NAME)
                        @Html.ValidationMessageFor(model => model.DEVICE_NAME)
                    </td>
                    <th>
                        @Html.LabelFor(model => model.MODEL_ID)：
                    </th>
                    <td>
                        @Html.DropDownListFor(model => model.MODEL_ID, ViewBag.DeviceModel as SelectList)
                        @Html.ValidationMessageFor(model => model.MODEL_ID)
                    </td>
                </tr>
                <tr>
                    <th>
                        @Html.LabelFor(model => model.IP)：
                    </th>
                    <td>
                        @Html.EditorFor(model => model.IP)
                        @Html.ValidationMessageFor(model => model.IP)
                    </td>
                    <th>
                        @Html.LabelFor(model => model.PORT)：
                    </th>
                    <td>
                        @Html.EditorFor(model => model.PORT)
                        @Html.ValidationMessageFor(model => model.PORT)
                    </td>
                </tr>
                <tr>
                    <th>
                        @Html.LabelFor(model => model.NET_STATUS)：
                    </th>
                    <td>
                        @Html.SwitchDropdown("NET_STATUS", true, "正常", "异常")
                        @Html.ValidationMessageFor(model => model.NET_STATUS)
                    </td>
                    <th>
                        @Html.LabelFor(model => model.NET_STATUS_TIME)：
                    </th>
                    <td>
                        @Html.TextBoxFor(model => model.NET_STATUS_TIME, new { @onClick = "WdatePicker()", @style = "width: 105px" })
                        @Html.ValidationMessageFor(model => model.NET_STATUS_TIME)
                    </td>
                </tr>
                <tr>
                    <th>
                        @Html.LabelFor(model => model.PARAMETERS)：
                    </th>
                    <td colspan="3">
                        @Html.EditorFor(model => model.PARAMETERS)
                        @Html.ValidationMessageFor(model => model.PARAMETERS)
                    </td>
                </tr>
            </tbody>
        </table>

